#pragma once

class BulletMgr
{
private:
	static const int maxBullet = 100;

	std::vector<AbstractBullet *> bullets;
	std::stack<AbstractBullet *> spawns;

public:
	BulletMgr();
	~BulletMgr();

	static BulletMgr * getInstance();

	void add(AbstractBullet * b);

	bool update(double dtime);
	bool render();

	void spawn(AbstractBullet * spawn) { spawns.push(spawn); }

	bool clear();
};